package com.roy.spring.demo.service;


import com.roy.spring.ioc.annotation.Component;
import com.roy.spring.ioc.annotation.Inject;
import com.roy.spring.demo.dao.UserDao;
import com.roy.spring.demo.model.User;

@Component("userService")
public class UserServiceImpl implements UserService{
	
	@Inject
	private UserDao userDao;
	
	public void add(User user){
		userDao.add(user);
	}
}
